package com.ruoyi.basedata.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import lombok.*;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户配置对象 t_user_terminalsxb_join
 *
 * @author gdqt
 * @date 2025-07-09
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_user_terminalsxb_join")
public class UserTerminalsxbJoin extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(value="id",type = IdType.AUTO)
    private Long id;

    /** 租户号 */
    @Excel(name = "租户号")
    @TableField("tenant_id")
    private String tenantId;

    /** 用户主键Id */
    @Excel(name = "用户主键Id")
    @TableField("user_id")
    private String userId;

    /** 能耗分类;水，电，气 */
    @Excel(name = "能耗分类;水，电，气")
    @TableField("energy_type")
    private Long energyType;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    @TableField("location_nb")
    private String locationNb;

    /** 表编号 */
    @Excel(name = "表编号")
    @TableField("terminal_id")
    private String terminalId;

    /** 计算类型；1：加；2：减 */
    @Excel(name = "计算类型；1：加；2：减")
    @TableField("calc_type")
    private Long calcType;

    /** 比率 */
    @Excel(name = "比率")
    @TableField("calc_rate")
    private BigDecimal calcRate;

    /** 状态：状态（1：在场；:2：离场；3：删除） */
    @Excel(name = "状态：状态", readConverterExp = "1=：在场；:2：离场；3：删除")
    @TableField("status")
    private Integer status;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("update_time")
    private Date updateTime;





}
